]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shell-global: Fix a few memory leaks
authorJasper St. Pierre <jstpierre@mecheye.net>
Sun, 13 Oct 2013 22:41:03 +0000 (18:41 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Mon, 14 Oct 2013 13:49:51 +0000 (09:49 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=710104

src/shell-global.c

index 4d91a2b12bdcd73c57406e59d88082805129b0e1..92da970482d6f673d4087be6b19786c7c2234549 100644 (file)
@@ -1779,6 +1779,8 @@ shell_global_set_runtime_state (ShellGlobal  *global,
                                NULL, FALSE, G_FILE_CREATE_REPLACE_DESTINATION,
                                NULL, NULL, NULL);
     }
+
+  g_object_unref (path);
 }
 
 /**
@@ -1822,5 +1824,8 @@ shell_global_get_runtime_state (ShellGlobal  *global,
       g_mapped_file_unref (mfile);
     }
 
+  g_object_unref (path);
+  g_free (pathstr);
+
   return res;
 }